﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ScreenSaverWPF" Width="Auto" Height="Auto"
    ShowInTaskbar="False" WindowState="Maximized" WindowStyle="None" Topmost="False" Top="0" Left="0" ResizeMode="NoResize" Cursor="None" Background="Black"
    Loaded="OnLoaded"
    >

  <Window.Resources>
    <Storyboard x:Key="Timeline1" Name="fadeInTextArea">
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textArea" Storyboard.TargetProperty="(UIElement.Opacity)">
        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
      </DoubleAnimationUsingKeyFrames>
    </Storyboard>
  </Window.Resources>

  <Canvas Name="drawCanvas"  Background="{x:Null}">
    <Grid Name="picContainer" >
      <Image Name="pic" Stretch="Uniform" StretchDirection="Both"  />
    </Grid>

    <Canvas Name="textArea" Width="250" Height="100" Canvas.Right="50" Canvas.Bottom="50" Visibility="Hidden">
      <Rectangle Name="textAreaRectangle" RadiusX="8" RadiusY="8" Width="250" Height="100"
                  Opacity="1" >
        <Rectangle.BitmapEffect>
          <OuterGlowBitmapEffect GlowColor="#FF000000" GlowSize="15" Opacity="1"/>
        </Rectangle.BitmapEffect>
        <Rectangle.Fill>
          <RadialGradientBrush>
            <GradientStop Color="#FF888888" Offset="1"/>
            <GradientStop Color="#FFFFFFFF" Offset="0"/>
          </RadialGradientBrush>
        </Rectangle.Fill>
      </Rectangle>

      <TextBlock Name="textAreaText" Width="220" Height="65"
        TextWrapping="Wrap" Opacity="1" Background="{x:Null}"
        FontFamily="Verdana" FontSize="18" FontStyle="Normal"
        FontWeight="Bold" Canvas.Top="15" Canvas.Left="15" HorizontalAlignment="Center" VerticalAlignment="Center">Test text goes on an on and some more blah blah sfwoef w eofaw?!?</TextBlock>
    </Canvas>

    <!--<TextBlock Name="text" Width="257" Height="87" TextWrapping="Wrap" Opacity="0.85" Background="#FFB7B4B4" Canvas.Right="50" Canvas.Bottom="50" FontFamily="Verdana" FontSize="16" FontStyle="Normal" FontWeight="Bold">
      Test text.
    </TextBlock>-->

  </Canvas>

</Window>
